package com.weeho.dongyong.dao;

import com.weeho.dongyong.entity.HoldGoods;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class HoldGoodsDao extends com.weeho.dongyong.dao.BaseDao {
    public int insertSelective(HoldGoods record) {
        return sqlSession.insert("insertHoldGoodsByPrimaryKey", record);
    }

    public int updateByPrimaryKeySelective(HoldGoods record) {
        return sqlSession.update("updateHoldGoodsByPrimaryKeySelective", record);
    }

    public int deleteByPrimaryKey(String id) {
        return sqlSession.update("deleteHoldGoodsByPrimaryKey", id);
    }

    public HoldGoods selectByPrimaryKey(String id) {
        return sqlSession.selectOne("selectHoldGoodsByPrimaryKey", id);
    }

    public List<HoldGoods> selectByCondition(HoldGoods record) {
        return sqlSession.selectList("selectHoldGoodsByCondition", record);
    }
}